// 页面的请求
import request from "../utls/request";
// 首屏渲染
export function getCourseApi(params) {
  return request({
    url: "/getcourse",
    method: "get",
    params,
  });
}
// 删除单个api
export function deleteApi(data) {
  return request({
    url: "/delete",
    method: "post",
    data: data,
  });
}
// 批量删除api
export function bathdeleteApi(data) {
  return request({
    url: "/batchdelete",
    method: "post",
    data: data,
  });
}
// 编辑表单
export function updateFunApi(data) {
  return request({
    url: "/updatehander",
    method: "post",
    data,
  });
}
